import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
const api = apiCreator();
export default {
  // 获取理财直融信息
  queryMoneyInformation: (query) => api.post(`${config.interfaces.type1}directFinancingTool/queryDFToolList`, query),
  // 根据Id编辑理财直融信息
  editInformationById: (query) => api.get(`${config.interfaces.type1}directFinancingTool/findDFToolById`, query),
  // 删除理财直融信息
  deleteInformationById: (query) => api.get(`${config.interfaces.type1}directFinancingTool/deleteTAdate`, query),
  // 新增理财直融信息
  addMoneyInformation: (query) => api.post(`${config.interfaces.type1}directFinancingTool/updateOrAdd`, query),
  // 理财直融信息转换
  transitionInformation: (query) => api.post(`${config.interfaces.type1}directFinancingTool/changeSecucode`, query),
  // 付息计算
  calcFx: (query) => api.post(`${config.interfaces.type1}directFinancingTool/queryJsFx`, query),
};
